package com.ruoyi.user.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 用药记录对象 orders
 * 
 * @author ruoyi
 * @date 2025-03-21
 */
public class Orders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单id */
    private Long orderId;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNo;

    /** 仓库ID */
    @Excel(name = "仓库ID")
    private Long storageId;

    /** 操作员 */
    private String adminId;

    /** 时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date oprTime;

    /** 老人ID（领用药品时使用） */
    @Excel(name = "老人ID", readConverterExp = "领=用药品时使用")
    private Long personId;

    /** 1入库，2领用 */
    @Excel(name = "1入库，2领用")
    private Long orderType;

    /** 状态（1未审核，2已审核，3作废） */
    @Excel(name = "状态", readConverterExp = "1=未审核，2已审核，3作废")
    private Long state;

    /** 老人信息信息 */
    private List<PersonInfo> personInfoList;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setStorageId(Long storageId) 
    {
        this.storageId = storageId;
    }

    public Long getStorageId() 
    {
        return storageId;
    }
    public void setAdminId(String adminId) 
    {
        this.adminId = adminId;
    }

    public String getAdminId() 
    {
        return adminId;
    }
    public void setOprTime(Date oprTime) 
    {
        this.oprTime = oprTime;
    }

    public Date getOprTime() 
    {
        return oprTime;
    }
    public void setPersonId(Long personId) 
    {
        this.personId = personId;
    }

    public Long getPersonId() 
    {
        return personId;
    }
    public void setOrderType(Long orderType) 
    {
        this.orderType = orderType;
    }

    public Long getOrderType() 
    {
        return orderType;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }

    public List<PersonInfo> getPersonInfoList()
    {
        return personInfoList;
    }

    public void setPersonInfoList(List<PersonInfo> personInfoList)
    {
        this.personInfoList = personInfoList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("orderNo", getOrderNo())
            .append("storageId", getStorageId())
            .append("adminId", getAdminId())
            .append("oprTime", getOprTime())
            .append("remark", getRemark())
            .append("personId", getPersonId())
            .append("orderType", getOrderType())
            .append("state", getState())
            .append("createTime", getCreateTime())
            .append("personInfoList", getPersonInfoList())
            .toString();
    }
}
